import CurrencyFormatter from 'currency-formatter'

export default {
  format(value, show = true) {
    return CurrencyFormatter.format(value, { locale: 'es-ES', format: '%v' + (show ? '%s' : '')})
  }
}